include ../makefile.head

#CFLAGS =  -O2  -Wall -Werror -Wno-unused -Wextra
#CFLAGS = -g  -Wall -Werror -Wno-unused -Wextra -DDEBUG
CFLAGS += -g  -DDEBUG

all: mymediaserver  

tag:
	ctags -R
	cscope -Rbq
tagclean:
	rm tags
	rm cscope*

mymediaserver: 14-1.c my_netio.c getnal.c
	gcc $(CFLAGS) 14-1.c my_netio.c getnal.c -o 14-1_srv $(LIBS)


my_netio:
	gcc $(CFLAGS) -D TEST_UNIT my_netio.c -o netio
clean: tagclean
	rm -rf *.o 14-1_srv

